home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
rocket_launcher.swf
/
scripts
/
DefineButton2_181
/
BUTTONCONDACTION on(press, keyPress Space).as
Wrap
Text File
|
2006-01-17
|
2KB
|
70 lines
on(press, keyPress "<Space>"){
if(isPlaying == "5")
{
if(soundPlaying == "1")
{
tellTarget("/coin in s")
{
play();
}
}
if(Credits >= "1")
{
if("2" < Credits)
{
tocreditsPlayed = "3";
toCredits = Credits + singleCredit - "3";
set("_level0/wc/:totimesPay","3");
}
if(Credits == "2")
{
tocreditsPlayed = "2";
toCredits = Credits + singleCredit - "2";
set("_level0/wc/:totimesPay","2");
}
if(Credits == "1")
{
tocreditsPlayed = "1";
toCredits = Credits + singleCredit - "1";
set("_level0/wc/:totimesPay","1");
}
creditsPlayed = tocreditsPlayed;
Credits = toCredits;
set("_level0/wc/:timesPay",eval("_level0/wc/:totimesPay"));
isPlaying = "10";
multiCredit = "3";
isPlayingSpin = "10";
stop1 = random("30") + "5";
stop2 = random("10") + "5";
stop3 = random("10") + "5";
set("_level0/reel1/:keepGoing","1");
set("_level0/reel2/:keepGoing2","1");
set("_level0/reel3/:keepGoing3","1");
set("_level0/wc/:winnerLevel","0");
tellTarget("/startplaying")
{
play();
}
if(soundPlaying == "1")
{
tellTarget("reelsound")
{
play();
}
tellTarget("/reelstop3")
{
play();
}
tellTarget("/reelstop2")
{
play();
}
tellTarget("/reelstop1")
{
play();
}
}
}
}
}